﻿$('.close-layer').click(function () {
    if (parent.layer) {
        var index = parent.layer.getFrameIndex(window.name);
        parent.layer.close(index);
    }
});